<h1>Editing happening</h1>

<%= error_messages_for :happening %>

<% form_for(:happening, :url => happening_path(@happening), :html => { :method => :put }) do |f| %>
  <p>
    <b>Provider</b><br />
    <%= f.text_field :provider_id %>
  </p>

  <p>
    <b>Name</b><br />
    <%= f.text_field :name %>
  </p>

  <p>
    <b>Location</b><br />
    <%= f.text_field :location %>
  </p>

  <p>
    <b>Starts at</b><br />
    <%= f.datetime_select :starts_at %>
  </p>

  <p>
    <b>Ends at</b><br />
    <%= f.datetime_select :ends_at %>
  </p>

  <p>
    <b>Happening type</b><br />
    <%= f.text_field :happening_type %>
  </p>

  <p>
    <b>Details</b><br />
    <%= f.text_area :details %>
  </p>

  <p>
    <b>Url</b><br />
    <%= f.text_field :url %>
  </p>

  <p>
    <%= submit_tag "Update" %>
  </p>
<% end %>

<%= link_to 'Show', happening_path(@happening) %> |
<%= link_to 'Back', happenings_path %>